package cn.ffcs.uec.staff.manager.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import cn.ffcs.uec.outStaff.model.UecOutStaffInfo;
import cn.ffcs.uec.staff.dao.UecTitleDao;
import cn.ffcs.uec.staff.manager.UecTitleManager;
import cn.ffcs.uec.staff.model.UecTitle;
import cn.ffcs.uec.staffAndOutStaff.vo.StaffAndOutStaff;
import cn.ffcs.uom.common.vo.PageInfo;

@Service("uecTitleManager")
@Scope("prototype")
public class UecTitleManagerImpl implements UecTitleManager {

	@Resource
	private UecTitleDao uecTitleDao;

	@Override
	public PageInfo queryPageInfoByUecTitle(UecTitle uecTitle, int current,
			int pageSize) {
		return uecTitleDao.queryPageInfoByUecTitle(uecTitle, current,
				pageSize);
	}

	@Override
	public UecTitle findUecTitleById(UecTitle uecTitle) {
		return uecTitleDao.findUecTitleById(uecTitle);
	}

	@Override
	public UecTitle findUecTitle(UecTitle uecTitle) {
		return uecTitleDao.findUecTitle(uecTitle);
	}

	@Override
	public PageInfo queryPageInfoByUecTitleOnApproval(UecTitle uecTitle,
			int current, int pageSize) {
		return uecTitleDao.queryPageInfoByUecTitleOnApproval(uecTitle, current, pageSize);
	}

	@Override
	public UecTitle findUecTitleByUecOutStaffInfo(UecOutStaffInfo uecOutStaffInfo) {
		// TODO Auto-generated method stub
		return uecTitleDao.findUecTitleByUecOutStaffInfo(uecOutStaffInfo);
	}

	@Override
	public List<UecTitle> getUecTitleListByPkpsndoc(StaffAndOutStaff uecOutStaffInfo) {
		// TODO Auto-generated method stub
		return uecTitleDao.getUecTitleListByPkpsndoc(uecOutStaffInfo);
	}

}
